package Chinese.Education.Identify.controller;

import Chinese.Education.Identify.pojo.TeacherUser;
import Chinese.Education.Identify.service.TeacherUserService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;

@RestController
@RequestMapping("/teacherUser")
public class TeacherUserController {
    @Resource
    private TeacherUserService teacherUserService;
    @RequestMapping("/login")
    public Map<String, Object> login(@RequestBody TeacherUser user, HttpServletRequest request){
        return teacherUserService.login(user, request);
    }
}
